package cn.poem.exception;

import cn.poem.base.ResponseCode;
import lombok.Data;

/**
 * @Description 异常大类
 * @Author sugar
 * @Date 2021/5/12 9:57 AM
 * @Version 1.0
 */

@Data
public class PoemException extends RuntimeException {

    private static final long serialVersionUID = -5701182284190108797L;

    private ResponseCode code;

    public PoemException(String message) {
        super(message);
    }

    public PoemException(String message, ResponseCode code) {

        super(message);

        this.code = code;
    }










}
